// 表单属性【右面板】，门户没用到
export const formConf = {
  formRef: 'elForm',
  formModel: 'formData',
  size: 'medium',
  labelPosition: 'right',
  labelWidth: 100,
  formRules: 'rules',
  gutter: 15,
  disabled: false,
  span: 24,
  formBtns: true
}

// 基础组件 【左面板】
export const basicComponents = [
  {
    // 组件的自定义配置
    __config__: {
      label: '数据面板',
      labelWidth: null,
      showLabel: true,
      changeTag: true,
      tag: 'PanelGroup',
      tagIcon: 'dataDiamond',
      layout: 'colFormItem',
      componentType:'basicComponents',
      span: 24,
    },
    // 其余的为可直接写在组件标签上的属性
    style: { width: '100%' },
    width: 300,
    height: 100,
    top: 10,
    left: 10,
    title: '数据面板',
    fontSize: '16px',
    fontColor:'rgba(0, 0, 0, 0.45)',
    bold: false,
    italic: false,
    underline: false,
    textAlign: 'left',
    heightFlag: false,
    lineHeight: '16px',
    icon: 'cascader',
    iconColor: '#409eff',
    iconBackColor: '#ffffff',
    backColor: '#ffffff',
    jumpTo: 0,
    tableName: '',
    field: '',
    method: '',
    unit: ''
  },
  {
    // 组件的自定义配置
    __config__: {
      label: '信息列表',
      labelWidth: null,
      showLabel: true,
      changeTag: true,
      tag: 'Message',
      tagIcon: 'list',
      layout: 'colFormItem',
      span: 24,
    },
    // 其余的为可直接写在组件标签上的属性
    style: { width: '100%' },
    width: 1000,
    height: 450,
    top: 10,
    left: 10,
    title: '信息列表',
    fontSize: '16px',
    fontColor:'rgba(0, 0, 0, 0.45)',
    bold: false,
    italic: false,
    underline: false,
    textAlign: 'left',
    heightFlag: false,
    lineHeight: '16px',
    jumpTo: 0,
    maxRow: 10,
    formName: null,
    table: '',
    sortField: '',
    columns: []
  },
  {
    // 组件的自定义配置
    __config__: {
      label: '快捷菜单',
      labelWidth: null,
      showLabel: true,
      changeTag: true,
      tag: 'QuickMenu',
      tagIcon: 'quickMenu',
      layout: 'colFormItem',
      componentType:'basicComponents',
      span: 24,
    },
    // 其余的为可直接写在组件标签上的属性
    style: { width: '100%' },
    width: 300,
    height: 150,
    top: 10,
    left: 10,
    title: '快捷菜单',
    fontSize: '16px',
    fontColor:'rgba(0, 0, 0, 0.45)',
    bold: false,
    italic: false,
    underline: false,
    textAlign: 'left',
    heightFlag: false,
    lineHeight: '16px',
    menus: [{
      funcName: '功能名称',
      icon: 'cascader',
      iconColor: '#409eff',
      iconBackColor: '#ffffff',
      backColor: '#ffffff',
      jumpTo: 0,
      sortId: 0
    }]
  },
]

//图表组件
export const chartComponents = [
  {
    // 组件的自定义配置
    __config__: {
      label: '柱状图',
      labelWidth: null,
      showLabel: true,
      changeTag: true,
      tag: 'BarChart',
      tagIcon: 'barChart',
      layout: 'colFormItem',
      componentType:'chartComponents',
      span: 24,
    },
    // 其余的为可直接写在组件标签上的属性
    style: { width: '100%' },
    width: 500,
    height: 300,
    top: 10,
    left: 10,
    showBgc:false,
    backColor: '#ffffff',
    title: '柱状图',
    fontSize: '16px',
    fontColor:'rgba(0, 0, 0, 0.45)',
    bold: false,
    italic: false,
    underline: false,
    textAlign: 'left',
    heightFlag: false,
    lineHeight: '16px',
    dataCoordinate:'Y轴',
    tableName: '',
    xField:'',
    yField:'',
    CNameField:'',
    CDataField:'',
    jumpTo: 0,
  },
  {
    // 组件的自定义配置
    __config__: {
      label: '折线图',
      labelWidth: null,
      showLabel: true,
      changeTag: true,
      tag: 'LineChart',
      tagIcon: 'lineChart',
      layout: 'colFormItem',
      componentType:'chartComponents',
      span: 24,
    },
    // 其余的为可直接写在组件标签上的属性
    style: { width: '100%' },
    width: 500,
    height: 300,
    top: 10,
    left: 10,
    showBgc:false,
    backColor: '#ffffff',
    title: '折线图',
    fontSize: '16px',
    fontColor:'rgba(0, 0, 0, 0.45)',
    bold: false,
    italic: false,
    underline: false,
    textAlign: 'left',
    heightFlag: false,
    lineHeight: '16px',
    dataCoordinate:'Y轴',
    tableName: '',
    xField:'',
    yField:'',
    CNameField:'',
    CDataField:'',
    jumpTo: 0,
  },
  {
    // 组件的自定义配置
    __config__: {
      label: '饼状图',
      labelWidth: null,
      showLabel: true,
      changeTag: true,
      tag: 'PieChart',
      tagIcon: 'pieChart',
      layout: 'colFormItem',
      componentType:'chartComponents',
      span: 24,
    },
    // 其余的为可直接写在组件标签上的属性
    style: { width: '100%' },
    width: 500,
    height: 300,
    top: 10,
    left: 10,
    showBgc:false,
    backColor: '#ffffff',
    title: '饼状图',
    fontSize: '16px',
    fontColor:'rgba(0, 0, 0, 0.45)',
    bold: false,
    italic: false,
    underline: false,
    textAlign: 'left',
    heightFlag: false,
    lineHeight: '16px',
    tableName: '',
    nameField:'',
    dataField:'',
    CNameField:'',
    CDataField:'',
    jumpTo: 0,
  },
  {
    // 组件的自定义配置
    __config__: {
      label: '雷达图',
      labelWidth: null,
      showLabel: true,
      changeTag: true,
      tag: 'RaddarChart',
      tagIcon: 'radarChart',
      layout: 'colFormItem',
      componentType:'chartComponents',
      span: 24,
    },
    // 其余的为可直接写在组件标签上的属性
    style: { width: '100%' },
    width: 500,
    height: 300,
    top: 10,
    left: 10,
    showBgc:false,
    backColor: '#ffffff',
    title: '雷达图',
    fontSize: '16px',
    fontColor:'rgba(0, 0, 0, 0.45)',
    bold: false,
    italic: false,
    underline: false,
    textAlign: 'left',
    heightFlag: false,
    lineHeight: '16px',
    tableName: '',
    nameField:'',
    dataField:'',
    columns:[],
    Ydata:[],
    CNameField:'',
    CDataField:'',
    jumpTo: 0,
  },
  {
    // 组件的自定义配置
    __config__: {
      label: '仪表盘',
      labelWidth: null,
      showLabel: true,
      changeTag: true,
      tag: 'GaugeChart',
      tagIcon: 'gaugeChart',
      layout: 'colFormItem',
      componentType:'chartComponents',
      span: 24,
    },
    // 其余的为可直接写在组件标签上的属性
    style: { width: '100%' },
    width: 500,
    height: 300,
    top: 10,
    left: 10,
    showBgc:false,
    backColor: '#ffffff',
    title: '仪表盘',
    fontSize: '16px',
    fontColor:'rgba(0, 0, 0, 0.45)',
    bold: false,
    italic: false,
    underline: false,
    textAlign: 'left',
    heightFlag: false,
    lineHeight: '16px',
    tableName: '',
    nameField:'',
    dataField:'',
    CNameField:'',
    CDataField:'',
    jumpTo: 0,
  },
  {
    // 组件的自定义配置
    __config__: {
      label: '环形图',
      labelWidth: null,
      showLabel: true,
      changeTag: true,
      tag: 'RingChart',
      tagIcon: 'ringChart',
      layout: 'colFormItem',
      componentType:'chartComponents',
      span: 24,
    },
    // 其余的为可直接写在组件标签上的属性
    style: { width: '100%' },
    width: 500,
    height: 300,
    top: 10,
    left: 10,
    showBgc:false,
    backColor: '#ffffff',
    title: '环形图',
    fontSize: '16px',
    fontColor:'rgba(0, 0, 0, 0.45)',
    bold: false,
    italic: false,
    underline: false,
    textAlign: 'left',
    heightFlag: false,
    lineHeight: '16px',
    tableName: '',
    nameField:'',
    dataField:'',
    CNameField:'',
    CDataField:'',
    jumpTo: 0,
  },
  {
    // 组件的自定义配置
    __config__: {
      label: '面积图',
      labelWidth: null,
      showLabel: true,
      changeTag: true,
      tag: 'AreaChart',
      tagIcon: 'areaChart',
      layout: 'colFormItem',
      componentType:'chartComponents',
      span: 24,
    },
    // 其余的为可直接写在组件标签上的属性
    style: { width: '100%' },
    width: 500,
    height: 300,
    top: 10,
    left: 10,
    showBgc:false,
    backColor: '#ffffff',
    title: '面积图',
    fontSize: '16px',
    fontColor:'rgba(0, 0, 0, 0.45)',
    bold: false,
    italic: false,
    underline: false,
    textAlign: 'left',
    heightFlag: false,
    lineHeight: '16px',
    dataCoordinate:'Y轴',
    tableName: '',
    xField:'',
    yField:'',
    CNameField:'',
    CDataField:'',
    jumpTo: 0,
  },
]

//系统组件
export const systemComponents = [
  {
    // 组件的自定义配置
    __config__: {
      label: '我的任务',
      labelWidth: null,
      showLabel: true,
      changeTag: true,
      tag: 'MyTask',
      tagIcon: 'input',
      layout: 'colFormItem',
      componentType:'systemComponents',
      span: 24,
    },
    // 其余的为可直接写在组件标签上的属性
    style: { width: '100%' },
    width: 1000,
    height: 200,
    top: 10,
    left: 10,
    title: '我的任务',
    fontSize: '16px',
    fontColor:'rgba(0, 0, 0, 0.45)',
    bold: false,
    italic: false,
    underline: false,
    textAlign: 'left',
    heightFlag: false,
    lineHeight: '16px',
    jumpTo: 1201,
    wait: {
      icon: 'todo',
      iconColor: '#409eff',
      iconBackColor: '#ffffff',
    },
    done: {
      icon: 'done',
      iconColor: '#409eff',
      iconBackColor: '#ffffff',
    },
    view: {
      icon: 'cc',
      iconColor: '#409eff',
      iconBackColor: '#ffffff',
    }
  },
  {
    // 组件的自定义配置
    __config__: {
      label: '消息通知',
      labelWidth: null,
      showLabel: true,
      changeTag: true,
      tag: 'Notice',
      tagIcon: 'todo',
      layout: 'colFormItem',
      span: 24,
    },
    // 其余的为可直接写在组件标签上的属性
    style: { width: '100%' },
    width: 1000,
    height: 450,
    top: 10,
    left: 10,
    title: '消息通知',
    fontSize: '16px',
    fontColor:'rgba(0, 0, 0, 0.45)',
    bold: false,
    italic: false,
    underline: false,
    textAlign: 'left',
    heightFlag: false,
    lineHeight: '16px',
    jumpTo: 1285,
    wrap: false,
    maxRow: 10,
    field: 'createTime'
  },
  {
    // 组件的自定义配置
    __config__: {
      label: '待办任务',
      labelWidth: null,
      showLabel: true,
      changeTag: true,
      tag: 'TodoTask',
      tagIcon: 'todo',
      layout: 'colFormItem',
      span: 24,
    },
    // 其余的为可直接写在组件标签上的属性
    style: { width: '100%' },
    width: 1000,
    height: 450,
    top: 10,
    left: 10,
    title: '待办任务',
    fontSize: '16px',
    fontColor:'rgba(0, 0, 0, 0.45)',
    bold: false,
    italic: false,
    underline: false,
    textAlign: 'left',
    heightFlag: false,
    lineHeight: '16px',
    jumpTo: 1207,
    wrap: false,
    maxRow: 10,
    field: 'createTime'
  },
]